package com.cskaoyan.controller;

import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.bean.vo.WXHomeIndexVO;
import com.cskaoyan.service.WXHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("wx/home")
@RestController
public class WXHomeController {
    @Autowired
    WXHomeService homeService;

    @RequestMapping("/index")
    public BaseRespVo index(){
        WXHomeIndexVO index = homeService.index( );
        return BaseRespVo.success(index);
    }
}
